home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Utilities / Random / Commodore 64c / SOURCE / Stack.h < prev    next >
Text File  |  1992-07-25  |  170b  |  5 lines

  1. #define Push(z) RAM[sp+256]=z; sp--
  2. #define Pop() ((byte)RAM[++sp+256])
  3. #define PushWord(z) Push((z>>8)&255); Push(z&255)
  4. #define PopWord(z) z=Pop(); z +=(word)256*Pop()
  5.